const webpack = require('webpack')
const {defineConfig} = require('@vue/cli-service')
module.exports = defineConfig({
  publicPath: "/vuedemo",
  lintOnSave: false,   //配置关闭eslint
  transpileDependencies: true,
  chainWebpack: config => {
    //引入ProvidePlugin
    config.plugin("provide").use(webpack.ProvidePlugin, [{
      $: "jquery",
      jquery: "jquery",
      jQuery: "jquery",
      "window.jQuery": "jquery",
    },]);
  },
  configureWebpack:{
    devtool: 'source-map'
  },
  devServer: {
    proxy: {
      '/api': {
        target: 'https://udify.app', //内蒙正式外网
        changeOrigin: true
      }
    },
  },
})
